special-protocols: Fav/Scan Programmer
--------------------------------------

This protocol allows you to map an Advanced Code to the 
FAV/SCAN key. There are some limitations, so it isn't a 
replacement for the "FAV/SCAN swap" hardware modification.

Known Limitations:
* The key works with CBL, TV, or VCR devices ONLY. 
* The key CANNOT be used in macros.
* The Advanced Code must be for the Setup Code of the active 
device button; you can't control a different device.
* The protocol works ONLY if the original protocol is in ROM 
(not a Protocol Upgrade) and the Setup Code is in EEPROM. 
* If another device button using the same protocol, the same 
hex command will be mapped to the FAV/SCAN key of both.
* Only 1-byte protocols are supported.

This is a template for the new protocol, which requires a 
few changes depending on the original protocol:

(note: '##' represent remote-specific bytes): 

Upgrade protocol 0 = 00 xx (S3C80)
 00 00 y1 ## ## 04 6B 0B 56 ## E3 56 00 DF B0 0D
 E6 0z hh C6 C4 00 xx F6 ## ## 50 C0 50 C1 8D ##
 ##
End

Replace the two instances of 'xx' with the original protocol 
number as found in the device upgrade (also change the 
preceding '00' to '01' if the protocol is greater than FF).

Replace 'y' with the number of fixed parameters (the number 
of arguments in the Fixed Data field for the device upgrade)

Replace 'z' with 3+'y' (e.g. for a protocol with 3 fixed 
parameters use 6)

Replace 'hh' with the hex command to put on the FAV/SCAN key.

For example, this would map hex command $F6 on the FAV/SCAN 
button for the $E8 protocol:

Upgrade protocol 0 = 00 E8 (S3C80)
 00 00 31 76 7C 04 6B 0B 56 7C E3 56 00 DF B0 0D
 E6 06 FC C6 C4 00 E8 F6 11 4D 50 C0 50 C1 8D 06
 83
End

Adding this protocol to the Protocols tab in IR is all 
that's needed to enable the new FAV/SCAN behavior. No other 
changes are required.
